﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Hotel.Models.DataAccess;
using Hotel.Models.Entity;

namespace Hotel.Models.Services
{
    public class GroupServiceService
    {
        public static List<GroupService> GetListGroupService()
        {
            return DAGroupService.GetListGroupService(0);
        }

        public static GroupService GetGroupServiceDetail(int groupServiceID)
        {
            return DAGroupService.GetListGroupService(groupServiceID)[0];
        }

        public static bool DeleteGroupService(int groupServiceID)
        {
            return DAGroupService.DeleteGroupService(groupServiceID);
        }
        //Insert : isUpdate = false
        //Update : isUpdate = true
        public static bool SaveGroupService(GroupService floor, bool isUpdate)
        {
            return DAGroupService.SaveGroupService(floor, isUpdate);
        }
    }
}